package com.ruoyi.qbms.mapper;

import java.util.List;
import com.ruoyi.qbms.domain.QbmsCategory;

/**
 * 题库类别Mapper接口
 * 
 * @author zouhuu
 * @date 2022-10-16
 */
public interface QbmsCategoryMapper 
{
    /**
     * 查询题库类别
     * 
     * @param id 题库类别主键
     * @return 题库类别
     */
    public QbmsCategory selectQbmsCategoryById(Long id);

    /**
     * 查询分类选项
     * @param qbmsCategory
     * @return
     */
    public List<QbmsCategory> selectQbmsCategoryOptions(QbmsCategory qbmsCategory);

    /**
     * 查询题库类别列表
     * 
     * @param qbmsCategory 题库类别
     * @return 题库类别集合
     */
    public List<QbmsCategory> selectQbmsCategoryList(QbmsCategory qbmsCategory);

    /**
     * 新增题库类别
     * 
     * @param qbmsCategory 题库类别
     * @return 结果
     */
    public int insertQbmsCategory(QbmsCategory qbmsCategory);

    /**
     * 修改题库类别
     * 
     * @param qbmsCategory 题库类别
     * @return 结果
     */
    public int updateQbmsCategory(QbmsCategory qbmsCategory);

    /**
     * 删除题库类别
     * 
     * @param id 题库类别主键
     * @return 结果
     */
    public int deleteQbmsCategoryById(Long id);

    /**
     * 批量删除题库类别
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteQbmsCategoryByIds(Long[] ids);
}
